public class MulArray {
    static public void main(String [] args) {
        // int a[][] = new int[3][5];
        // int a[][] = new int[3][];
        int a[][] = {{1, 2, 3}, {11, 22, 33, 44, 55}, {666, 9999}};

        // a[0] = new int[5];
        // a[1] = new int[3];
        // a[2] = new int[10];


        System.out.printf("a.len = %d\n", a.length);

        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                a[i][j] = (int)(Math.random() * 100);
            }
        }

        a[0][0] = 678;

        for (int [] i : a) {
            for (int j : i) {
                System.out.printf("%d ", j);
            }
            System.out.println();
        }
    }
}
